package com.ndp.fb.mongo.model.autocreatead.robot;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Comparator;
import java.util.List;

/**
 * Created by hunk.qin on 2016/6/16.
 */
@Setter
@Getter
@NoArgsConstructor
public class MarketingTargetStrategy implements Comparable<MarketingTargetStrategy>, Serializable {

    /**
     * 实例化后的策略对象id
     */
    String strategyRuleSpecificId;

    /**
     * 策略本身的id
     */
    String strategyRuleId;

    Integer score;
    /**
     * 营销目标策略下的广告
     */
    List<AdInfoForStrategy>  adInfoForStrategies;



    @Override
    public int compareTo(MarketingTargetStrategy o) {
        return this.score-o.score;
    }
}
